home *** CD-ROM | disk | FTP | other *** search
- /* DrawingViewWraps.c generated from DrawingViewWraps.psw
- by unix pswrap V1.009 Wed Apr 19 17:50:24 PDT 1989
- */
-
- #include <dpsclient/dpsfriends.h>
- #include <string.h>
-
- #line 1 "DrawingViewWraps.psw"
-
- /*
- * (a) (C) 1990 by Adobe Systems Incorporated. All rights reserved.
- *
- * (b) If this Sample Code is distributed as part of the Display PostScript
- * System Software Development Kit from Adobe Systems Incorporated,
- * then this copy is designated as Development Software and its use is
- * subject to the terms of the License Agreement attached to such Kit.
- *
- * (c) If this Sample Code is distributed independently, then the following
- * terms apply:
- *
- * (d) This file may be freely copied and redistributed as long as:
- * 1) Parts (a), (d), (e) and (f) continue to be included in the file,
- * 2) If the file has been modified in any way, a notice of such
- * modification is conspicuously indicated.
- *
- * (e) PostScript, Display PostScript, and Adobe are registered trademarks of
- * Adobe Systems Incorporated.
- *
- * (f) THE INFORMATION BELOW IS FURNISHED AS IS, IS SUBJECT TO
- * CHANGE WITHOUT NOTICE, AND SHOULD NOT BE CONSTRUED
- * AS A COMMITMENT BY ADOBE SYSTEMS INCORPORATED.
- * ADOBE SYSTEMS INCORPORATED ASSUMES NO RESPONSIBILITY
- * OR LIABILITY FOR ANY ERRORS OR INACCURACIES, MAKES NO
- * WARRANTY OF ANY KIND (EXPRESS, IMPLIED OR STATUTORY)
- * WITH RESPECT TO THIS INFORMATION, AND EXPRESSLY
- * DISCLAIMS ANY AND ALL WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR PARTICULAR PURPOSES AND NONINFRINGEMENT
- * OF THIRD PARTY RIGHTS.
- */
-
- /*
- * DrawingViewWraps.psw
- *
- *
- * Version: 2.0
- * Author: Ken Fromm
- * History:
- * 03-07-91 Added this comment.
- */
- #line 51 "DrawingViewWraps.c"
- void PSWMarkTime( void )
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 3, 28,
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* StartTime */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 328}, /* realtime */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- static long int _dpsCodes[1] = {-1};
- {
- if (_dpsCodes[0] < 0) {
- static const char * const _dps_names[] = {
- "StartTime"};
- long int *_dps_nameVals[1];
- _dps_nameVals[0] = &_dpsCodes[0];
-
- DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
- }
- }
-
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.nameVal = _dpsCodes[0];
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,28);
- }
- #line 45 "DrawingViewWraps.psw"
-
- #line 91 "DrawingViewWraps.c"
- void PSWReturnTime(int *ElapsedTime)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjGeneric obj5;
- DPSBinObjGeneric obj6;
- DPSBinObjGeneric obj7;
- DPSBinObjGeneric obj8;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 9, 76,
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 328}, /* realtime */
- {DPS_EXEC|DPS_NAME, 0, 0, 0}, /* StartTime */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 169}, /* sub */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 70}, /* flush */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- static long int _dpsCodes[1] = {-1};
- DPSResultsRec _dpsR[1];
- static const DPSResultsRec _dpsRstat[] = {
- { dps_tInt, -1 },
- };
- _dpsR[0] = _dpsRstat[0];
- _dpsR[0].value = (char *)ElapsedTime;
-
- {
- if (_dpsCodes[0] < 0) {
- static const char * const _dps_names[] = {
- "StartTime"};
- long int *_dps_nameVals[1];
- _dps_nameVals[0] = &_dpsCodes[0];
-
- DPSMapNames(_dpsCurCtxt, 1, _dps_names, _dps_nameVals);
- }
- }
-
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[1].val.nameVal = _dpsCodes[0];
- DPSSetResultTable(_dpsCurCtxt, _dpsR, 1);
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,76);
- DPSAwaitReturnValues(_dpsCurCtxt);
- }
- #line 50 "DrawingViewWraps.psw"
-
- #line 152 "DrawingViewWraps.c"
- void PSWCachestatus(int Array[])
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjGeneric obj5;
- DPSBinObjGeneric obj6;
- DPSBinObjGeneric obj7;
- DPSBinObjGeneric obj8;
- DPSBinObjGeneric obj9;
- DPSBinObjGeneric obj10;
- DPSBinObjGeneric obj11;
- DPSBinObjGeneric obj12;
- DPSBinObjGeneric obj13;
- DPSBinObjGeneric obj14;
- DPSBinObjGeneric obj15;
- DPSBinObjGeneric obj16;
- } _dpsQ;
- static const _dpsQ _dpsF = {
- DPS_DEF_TOKENTYPE, 13, 140,
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 265}, /* cachestatus */
- {DPS_LITERAL|DPS_INT, 0, 0, 7},
- {DPS_LITERAL|DPS_INT, 0, 0, -1},
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_EXEC|DPS_ARRAY, 0, 2, 120},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 72}, /* for */
- {DPS_LITERAL|DPS_INT, 0, 0, 7},
- {DPS_EXEC|DPS_ARRAY, 0, 2, 104},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 131}, /* repeat */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 70}, /* flush */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 135}, /* roll */
- }; /* _dpsQ */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- DPSResultsRec _dpsR[1];
- static const DPSResultsRec _dpsRstat[] = {
- { dps_tInt },
- };
- _dpsR[0] = _dpsRstat[0];
- _dpsR[0].count = 7;
- _dpsR[0].value = (char *)Array;
-
- DPSSetResultTable(_dpsCurCtxt, _dpsR, 1);
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,140);
- DPSAwaitReturnValues(_dpsCurCtxt);
- }
- #line 54 "DrawingViewWraps.psw"
-
- #line 213 "DrawingViewWraps.c"
- void PSWCurrentcacheparams(int *Size, int *Lower, int *Upper)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjGeneric obj5;
- DPSBinObjGeneric obj6;
- DPSBinObjGeneric obj7;
- DPSBinObjGeneric obj8;
- DPSBinObjGeneric obj9;
- DPSBinObjGeneric obj10;
- } _dpsQ;
- static const _dpsQ _dpsF = {
- DPS_DEF_TOKENTYPE, 11, 92,
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 275}, /* currentcacheparams */
- {DPS_LITERAL|DPS_INT, 0, 0, 2},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_INT, 0, 0, 3},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 119}, /* printobject */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 70}, /* flush */
- }; /* _dpsQ */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- DPSResultsRec _dpsR[3];
- static const DPSResultsRec _dpsRstat[] = {
- { dps_tInt, -1 },
- { dps_tInt, -1 },
- { dps_tInt, -1 },
- };
- _dpsR[0] = _dpsRstat[0];
- _dpsR[0].value = (char *)Size;
- _dpsR[1] = _dpsRstat[1];
- _dpsR[1].value = (char *)Lower;
- _dpsR[2] = _dpsRstat[2];
- _dpsR[2].value = (char *)Upper;
-
- DPSSetResultTable(_dpsCurCtxt, _dpsR, 3);
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,92);
- DPSAwaitReturnValues(_dpsCurCtxt);
- }
- #line 58 "DrawingViewWraps.psw"
-
- #line 267 "DrawingViewWraps.c"
- void PSWSetcacheparams(int Size, int Lower, int Upper)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 5, 44,
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 318}, /* mark */
- {DPS_LITERAL|DPS_INT, 0, 0, 0}, /* param: Size */
- {DPS_LITERAL|DPS_INT, 0, 0, 0}, /* param: Lower */
- {DPS_LITERAL|DPS_INT, 0, 0, 0}, /* param: Upper */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 339}, /* setcacheparams */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[1].val.integerVal = Size;
- _dpsP[2].val.integerVal = Lower;
- _dpsP[3].val.integerVal = Upper;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,44);
- }
- #line 62 "DrawingViewWraps.psw"
-
- #line 301 "DrawingViewWraps.c"
- void PSWRmovetoShow(float X, char Str[], int Num)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 5, 44,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: X */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 134}, /* rmoveto */
- {DPS_LITERAL|DPS_STRING, 0, 0, 40}, /* param Str */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- register int _dps_offset = 40;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = X;
- _dpsP[3].length = Num;
- _dpsP[3].val.stringVal = _dps_offset;
- _dps_offset += (Num + 3) & ~3;
-
- _dpsF.nBytes = _dps_offset+4;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,44);
- DPSWriteStringChars(_dpsCurCtxt, (char *)Str, Num);
- DPSWriteStringChars(_dpsCurCtxt, (char *)_dpsCurCtxt, ~(Num + 3) & 3);
- }
- #line 66 "DrawingViewWraps.psw"
-
- #line 341 "DrawingViewWraps.c"
- void PSWShow(char Str[], int Num)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 2, 20,
- {DPS_LITERAL|DPS_STRING, 0, 0, 16}, /* param Str */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 160}, /* show */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- register int _dps_offset = 16;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].length = Num;
- _dpsP[0].val.stringVal = _dps_offset;
- _dps_offset += (Num + 3) & ~3;
-
- _dpsF.nBytes = _dps_offset+4;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,20);
- DPSWriteStringChars(_dpsCurCtxt, (char *)Str, Num);
- DPSWriteStringChars(_dpsCurCtxt, (char *)_dpsCurCtxt, ~(Num + 3) & 3);
- }
- #line 70 "DrawingViewWraps.psw"
-
- #line 374 "DrawingViewWraps.c"
- void PSWAshow(float X, float Y, char Str[], int Num)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjReal obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 4, 36,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: X */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Y */
- {DPS_LITERAL|DPS_STRING, 0, 0, 32}, /* param Str */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 10}, /* ashow */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- register int _dps_offset = 32;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = X;
- _dpsP[1].val.realVal = Y;
- _dpsP[2].length = Num;
- _dpsP[2].val.stringVal = _dps_offset;
- _dps_offset += (Num + 3) & ~3;
-
- _dpsF.nBytes = _dps_offset+4;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,36);
- DPSWriteStringChars(_dpsCurCtxt, (char *)Str, Num);
- DPSWriteStringChars(_dpsCurCtxt, (char *)_dpsCurCtxt, ~(Num + 3) & 3);
- }
- #line 74 "DrawingViewWraps.psw"
-
- #line 413 "DrawingViewWraps.c"
- void PSWWidthshow(float X, float Y, int C, char Str[], int Num)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjReal obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 5, 44,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: X */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Y */
- {DPS_LITERAL|DPS_INT, 0, 0, 0}, /* param: C */
- {DPS_LITERAL|DPS_STRING, 0, 0, 40}, /* param Str */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 187}, /* widthshow */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- register int _dps_offset = 40;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = X;
- _dpsP[1].val.realVal = Y;
- _dpsP[2].val.integerVal = C;
- _dpsP[3].length = Num;
- _dpsP[3].val.stringVal = _dps_offset;
- _dps_offset += (Num + 3) & ~3;
-
- _dpsF.nBytes = _dps_offset+4;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,44);
- DPSWriteStringChars(_dpsCurCtxt, (char *)Str, Num);
- DPSWriteStringChars(_dpsCurCtxt, (char *)_dpsCurCtxt, ~(Num + 3) & 3);
- }
- #line 78 "DrawingViewWraps.psw"
-
- #line 455 "DrawingViewWraps.c"
- void PSWAwidthshow(float X, float Y, int C, float AX, float AY, char Str[], int Num)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char topLevelCount;
- unsigned short nBytes;
-
- DPSBinObjReal obj0;
- DPSBinObjReal obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjReal obj3;
- DPSBinObjReal obj4;
- DPSBinObjGeneric obj5;
- DPSBinObjGeneric obj6;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 7, 60,
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: X */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Y */
- {DPS_LITERAL|DPS_INT, 0, 0, 0}, /* param: C */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: AX */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: AY */
- {DPS_LITERAL|DPS_STRING, 0, 0, 56}, /* param Str */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 12}, /* awidthshow */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- register int _dps_offset = 56;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].val.realVal = X;
- _dpsP[1].val.realVal = Y;
- _dpsP[2].val.integerVal = C;
- _dpsP[3].val.realVal = AX;
- _dpsP[4].val.realVal = AY;
- _dpsP[5].length = Num;
- _dpsP[5].val.stringVal = _dps_offset;
- _dps_offset += (Num + 3) & ~3;
-
- _dpsF.nBytes = _dps_offset+4;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,60);
- DPSWriteStringChars(_dpsCurCtxt, (char *)Str, Num);
- DPSWriteStringChars(_dpsCurCtxt, (char *)_dpsCurCtxt, ~(Num + 3) & 3);
- }
- #line 82 "DrawingViewWraps.psw"
-
-
- /*
- * Reencode the font, add BitmapWidths, ExactSize, InBetweenSize and
- * TransformedChar entries set to 0 to force the use of outline fonts at all times.
- */
- #line 508 "DrawingViewWraps.c"
- void PSWCopyFont(char *F1, char *F2)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char sizeFlag;
- unsigned short topLevelCount;
- unsigned long nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjGeneric obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjGeneric obj5;
- DPSBinObjGeneric obj6;
- DPSBinObjGeneric obj7;
- DPSBinObjGeneric obj8;
- DPSBinObjGeneric obj9;
- DPSBinObjGeneric obj10;
- DPSBinObjGeneric obj11;
- DPSBinObjGeneric obj12;
- DPSBinObjGeneric obj13;
- DPSBinObjGeneric obj14;
- DPSBinObjGeneric obj15;
- DPSBinObjGeneric obj16;
- DPSBinObjGeneric obj17;
- DPSBinObjGeneric obj18;
- DPSBinObjGeneric obj19;
- DPSBinObjGeneric obj20;
- DPSBinObjGeneric obj21;
- DPSBinObjGeneric obj22;
- DPSBinObjGeneric obj23;
- DPSBinObjGeneric obj24;
- DPSBinObjGeneric obj25;
- DPSBinObjGeneric obj26;
- DPSBinObjGeneric obj27;
- DPSBinObjGeneric obj28;
- DPSBinObjGeneric obj29;
- DPSBinObjGeneric obj30;
- DPSBinObjGeneric obj31;
- DPSBinObjGeneric obj32;
- DPSBinObjGeneric obj33;
- DPSBinObjGeneric obj34;
- DPSBinObjGeneric obj35;
- DPSBinObjGeneric obj36;
- DPSBinObjGeneric obj37;
- DPSBinObjGeneric obj38;
- DPSBinObjGeneric obj39;
- DPSBinObjGeneric obj40;
- DPSBinObjGeneric obj41;
- DPSBinObjGeneric obj42;
- DPSBinObjGeneric obj43;
- DPSBinObjGeneric obj44;
- DPSBinObjGeneric obj45;
- DPSBinObjGeneric obj46;
- DPSBinObjGeneric obj47;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 0, 33, 392,
- {DPS_LITERAL|DPS_NAME, 0, 0, 384}, /* param F1 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 67}, /* findfont */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 56}, /* dup */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 13}, /* begin */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 56}, /* dup */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 98}, /* length */
- {DPS_LITERAL|DPS_INT, 0, 0, 4},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 1}, /* add */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 53}, /* dict */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 13}, /* begin */
- {DPS_EXEC|DPS_ARRAY, 0, 12, 264},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 73}, /* forall */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* FontName */
- {DPS_LITERAL|DPS_NAME, 0, 0, 384}, /* param F2 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* BitmapWidths */
- {DPS_LITERAL|DPS_BOOL, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* ExactSize */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* InBetweenSize */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* TransformedChar */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- {DPS_LITERAL|DPS_NAME, 0, 0, 384}, /* param F2 */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 30}, /* currentdict */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 290}, /* definefont */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 117}, /* pop */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 57}, /* end */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 57}, /* end */
- {DPS_LITERAL|DPS_INT, 0, 0, 1},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 88}, /* index */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* FID */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 109}, /* ne */
- {DPS_LITERAL|DPS_INT, 0, 0, 2},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 88}, /* index */
- {DPS_LITERAL|DPS_NAME, 0, 0, 0}, /* UniqueID */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 109}, /* ne */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 4}, /* and */
- {DPS_EXEC|DPS_ARRAY, 0, 1, 376},
- {DPS_EXEC|DPS_ARRAY, 0, 2, 360},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 85}, /* ifelse */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 117}, /* pop */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 117}, /* pop */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 51}, /* def */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- static long int _dpsCodes[7] = {-1};
- register int _dps_offset = 384;
- {
- if (_dpsCodes[0] < 0) {
- static const char * const _dps_names[] = {
- "FontName",
- "BitmapWidths",
- "ExactSize",
- "InBetweenSize",
- "TransformedChar",
- "FID",
- "UniqueID"};
- long int *_dps_nameVals[7];
- _dps_nameVals[0] = &_dpsCodes[0];
- _dps_nameVals[1] = &_dpsCodes[1];
- _dps_nameVals[2] = &_dpsCodes[2];
- _dps_nameVals[3] = &_dpsCodes[3];
- _dps_nameVals[4] = &_dpsCodes[4];
- _dps_nameVals[5] = &_dpsCodes[5];
- _dps_nameVals[6] = &_dpsCodes[6];
-
- DPSMapNames(_dpsCurCtxt, 7, _dps_names, _dps_nameVals);
- }
- }
-
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].length = strlen(F1);
- _dpsP[13].length =
- _dpsP[27].length = strlen(F2);
- _dpsP[12].val.nameVal = _dpsCodes[0];
- _dpsP[15].val.nameVal = _dpsCodes[1];
- _dpsP[18].val.nameVal = _dpsCodes[2];
- _dpsP[21].val.nameVal = _dpsCodes[3];
- _dpsP[24].val.nameVal = _dpsCodes[4];
- _dpsP[35].val.nameVal = _dpsCodes[5];
- _dpsP[39].val.nameVal = _dpsCodes[6];
- _dpsP[27].val.stringVal = _dps_offset;
- _dps_offset += (_dpsP[27].length + 3) & ~3;
- _dpsP[13].val.stringVal = _dps_offset;
- _dps_offset += (_dpsP[13].length + 3) & ~3;
- _dpsP[0].val.stringVal = _dps_offset;
- _dps_offset += (_dpsP[0].length + 3) & ~3;
-
- _dpsF.nBytes = _dps_offset+8;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,392);
- DPSWriteStringChars(_dpsCurCtxt, (char *)F2, _dpsP[27].length);
- DPSWriteStringChars(_dpsCurCtxt, (char *)_dpsCurCtxt, ~(_dpsP[27].length + 3) & 3);
- DPSWriteStringChars(_dpsCurCtxt, (char *)F2, _dpsP[13].length);
- DPSWriteStringChars(_dpsCurCtxt, (char *)_dpsCurCtxt, ~(_dpsP[13].length + 3) & 3);
- DPSWriteStringChars(_dpsCurCtxt, (char *)F1, _dpsP[0].length);
- DPSWriteStringChars(_dpsCurCtxt, (char *)_dpsCurCtxt, ~(_dpsP[0].length + 3) & 3);
- }
- #line 106 "DrawingViewWraps.psw"
-
- #line 675 "DrawingViewWraps.c"
- void PSWSetFont(char *Name, float Size)
- {
- typedef struct {
- unsigned char tokenType;
- unsigned char sizeFlag;
- unsigned short topLevelCount;
- unsigned long nBytes;
-
- DPSBinObjGeneric obj0;
- DPSBinObjGeneric obj1;
- DPSBinObjGeneric obj2;
- DPSBinObjReal obj3;
- DPSBinObjGeneric obj4;
- DPSBinObjGeneric obj5;
- DPSBinObjReal obj6;
- DPSBinObjGeneric obj7;
- DPSBinObjGeneric obj8;
- DPSBinObjGeneric obj9;
- DPSBinObjGeneric obj10;
- DPSBinObjGeneric obj11;
- DPSBinObjGeneric obj12;
- } _dpsQ;
- static const _dpsQ _dpsStat = {
- DPS_DEF_TOKENTYPE, 0, 13, 112,
- {DPS_LITERAL|DPS_NAME, 0, 0, 104}, /* param Name */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 67}, /* findfont */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 260}, /* [ */
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Size */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_REAL, 0, 0, 0}, /* param: Size */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 110}, /* neg */
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_LITERAL|DPS_INT, 0, 0, 0},
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 261}, /* ] */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 103}, /* makefont */
- {DPS_EXEC|DPS_NAME, 0, DPSSYSNAME, 149}, /* setfont */
- }; /* _dpsQ */
- _dpsQ _dpsF; /* local copy */
- register DPSContext _dpsCurCtxt = DPSPrivCurrentContext();
- register DPSBinObjRec *_dpsP = (DPSBinObjRec *)&_dpsF.obj0;
- register int _dps_offset = 104;
- _dpsF = _dpsStat; /* assign automatic variable */
-
- _dpsP[0].length = strlen(Name);
- _dpsP[3].val.realVal =
- _dpsP[6].val.realVal = Size;
- _dpsP[0].val.stringVal = _dps_offset;
- _dps_offset += (_dpsP[0].length + 3) & ~3;
-
- _dpsF.nBytes = _dps_offset+8;
- DPSBinObjSeqWrite(_dpsCurCtxt,(char *) &_dpsF,112);
- DPSWriteStringChars(_dpsCurCtxt, (char *)Name, _dpsP[0].length);
- DPSWriteStringChars(_dpsCurCtxt, (char *)_dpsCurCtxt, ~(_dpsP[0].length + 3) & 3);
- }
- #line 110 "DrawingViewWraps.psw"
-
-